package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonView;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 基地对象 sys_factory
 *
 * @author ygx
 * @date 2020-06-13
 */
public class SysFactory
{
	public interface factoryIdView {}
	public interface factoryErpView {}
	public interface factoryUserView extends factoryIdView,factoryErpView {}
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @JsonView(value = factoryIdView.class)
    private Long factoryId;

    /** 基地编号 */
    @Excel(name = "基地编号")
    @JsonView(value = factoryUserView.class)
    private String factoryCode;

    /** 基地名称 */
    @Excel(name = "基地名称")
    @JsonView(value = factoryIdView.class)
    private String factoryName;

    /** 角色绑定的基地编号 */
    private String roleFactoryCode;

    /** 角色绑定的基地名称 */
    private String roleFactoryId;

    /** 状态 */
    private Long delFlag;

    /** 类型 **/
    private String factoryType;

    /** 父项Id **/
    private Long parentId;

    /** erp部门code **/
    @JsonView(value = factoryErpView.class)
    private String erpdeptCode;

    /** erp部门name **/
    @JsonView(value = factoryErpView.class)
    private String erpdeptName;

    /** 货币种类 **/
    @JsonView(value = factoryErpView.class)
    private String currencyType;


    /** token*/
    private String sysToken;

    public void setFactoryId(Long factoryId)
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId()
    {
        return factoryId;
    }
    public void setFactoryCode(String factoryCode)
    {
        this.factoryCode = factoryCode;
    }

    public String getFactoryCode()
    {
        return factoryCode;
    }
    public void setFactoryName(String factoryName)
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName()
    {
        return factoryName;
    }
    public void setDelFlag(Long delFlag)
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag()
    {
        return delFlag;
    }

    public String getSysToken() {
		return sysToken;
	}

	public void setSysToken(String sysToken) {
		this.sysToken = sysToken;
	}


	public String getFactoryType() {
		return factoryType;
	}

	public void setFactoryType(String factoryType) {
		this.factoryType = factoryType;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}



	public String getRoleFactoryCode() {
		return roleFactoryCode;
	}

	public void setRoleFactoryCode(String roleFactoryCode) {
		this.roleFactoryCode = roleFactoryCode;
	}


	public String getRoleFactoryId() {
		return roleFactoryId;
	}

	public void setRoleFactoryId(String roleFactoryId) {
		this.roleFactoryId = roleFactoryId;
	}

    public String getErpdeptCode() {
        return erpdeptCode;
    }

    public void setErpdeptCode(String erpdeptCode) {
        this.erpdeptCode = erpdeptCode;
    }

    public String getErpdeptName() {
        return erpdeptName;
    }

    public void setErpdeptName(String erpdeptName) {
        this.erpdeptName = erpdeptName;
    }

    public String getCurrencyType() {
        return currencyType;
    }

    public void setCurrencyType(String currencyType) {
        this.currencyType = currencyType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("factoryId", getFactoryId())
            .append("factoryCode", getFactoryCode())
            .append("factoryName", getFactoryName())
            .append("delFlag", getDelFlag())
            .append("factoryType", getFactoryType())
            .append("parentId", getParentId())
            .toString();
    }
}
